package router

import (
	"github.com/exam/api/controller"
	"github.com/exam/global"
	"github.com/exam/model/dao"
	"github.com/exam/service"
	"github.com/gin-gonic/gin"
)

type UserGroupRouter struct {
}

func (u *UserGroupRouter) UserRouter(r *gin.RouterGroup) {

	user := r.Group("user")
	{
		userController := controller.NewUserController(service.NewUserService(dao.NewUserDao(global.DB)))
		user.POST("/login", userController.Login)
	}

}
